package org.darkforest.dao.mapper;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.Member;
import org.darkforest.model.MemberWithBLOBs;
import org.darkforest.vo.MemberAccount;
import org.darkforest.vo.MemberProxyVo;
import org.darkforest.vo.MemberSearchBean;
import org.darkforest.vo.SubMemberInfo;

import java.util.List;
import java.util.Map;

@DBMapper
public interface MemberMapper {
    int deleteByPrimaryKey(Integer memberId);

    int insert(MemberWithBLOBs record);

    int insertSelective(MemberWithBLOBs record);

    MemberWithBLOBs selectByPrimaryKey(Integer memberId);

    int updateByPrimaryKeySelective(MemberWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(MemberWithBLOBs record);

    int updateByPrimaryKey(Member record);

    Member selectByUserName(String userName);

    List<Member> getMemberInfoByCond(Member member);


    List<Member> getMemberPageList(MemberSearchBean param);

    Member findMemberInfoByPrimaryKey(String recommendId);

    int updateMemberPoints(Member member);

    int updateMemberType(Member member);

    Integer getMemberCount(Integer nearTime);

    Member getMemberById(Integer memberId);

    MemberProxyVo getMemberProxyInfo(Integer memberId);

    Member getMemberByWxId(String wxOpenId);

    int updateMemberBaseInfo(Member member);

    public Integer getUnderMemberCnt(Integer memberId);
    List<Member> getMemberByCond(Member member);
    int updateMemberAccount(Member member);
    MemberAccount getMemberAccount(Integer member);

    List<Map<String,Object>> findAddMember(MemberSearchBean memberSearchBean);


    List<Member>  getUnderMemberList(Member sbi);
}